{template 'header', 'member'}
    <!--right start-->
    <div class="right layout-right fn-right">
        <p class="tips bd-gray c666">专用于广大企业用户发布广告信息。</p>
        <!--main-block start-->
        <div class="main-block bd-gray mt10">
            <div class="hd fn-clear">
                <h2 class="fn-left">广告发布</h2>
            </div>
            <ul id="data-nav" class="main-nav mt10 fn-clear">
                <li><a href="ad.php?action=add">购买广告位</a></li>
                <li class="current"><a href="ad.php">编辑广告位</a></li>
            </ul>

            <!--购买广告位 start-->
            {loop $lists $k $v}

            <table class="data-form con">
            <tbody>
            <tr>
                <th width="100">广告位：</th>
                <td width="600"><a href="ad.php?action=edit&payid={$v['payid']}" title="总站 zcx_4[总站直销展示页]">{$v['type']} {$v[name]} [{$v['typename']}]</a></td>
            </tr>
            <tr>
                <th width="100">当前状态：</th>
                <td width="600">
                {if $v[process]==0}
                	<span class="icon-due">尚未开始</span>
                {/if}
                {if $v[process]==1}
               		<span class="icon-due fn-left">正在发布</span>
                    <span class="fn-left ml10 c666">剩余时间{$v['days']}天</span>
                {/if}
                {if $v[process]==2}
                    <span class="icon-overdue fn-left mr20">已过期</span>
                    <span class="icon-warning fn-left c666">您购买的广告位已过期需<a href="#" title="购买广告位">重新购买</a></span>
                {/if}
                </td>
            </tr>
            <tr>
                <th>购买时间段：</th>
                <td>{timetodate($v[starttime], 3)}至{timetodate($v[overtime], 3)}</td>
            </tr>
            {if is_array($v['areaids'])}
            <tr>
                <th>地区分站：</th>
                <td>
                    <ul class="ad-subdite fn-clear">
                    	{loop $v['areaids'] $city}
                        <li>{$AREA[$city]['areaname']}</li>
                    	{/loop}
                    </ul>
                </td>
            </tr>
            {/if}
            </tbody>
        </table>
            <hr class="bd-bot con">
            {/loop}
            <!--购买广告位 end-->
            <div class="pages">{$pages}</div>
        </div>

        <!--main-block end-->
    </div>
    <!--right end-->

    </div>
    {template 'footer', $module}